how apply operations to functions